{template "yp","header"}
<!--main-->
<script language="javascript">
  function b_query(){

	  window.location.href="/index.php?m=yp&c=index&a=list_searchcompany&searchkey="+document.getElementById("searchkey").value;
  }
</script>
<div class="main clear">
	<div class="crumbs" style="margin-bottom:0"><a href="{APP_PATH}">首页</a><span> > </span>找汽修</div>
	
	 <div class="box cat-data" id="PropSingle">
	   <div class="choosed"><input type="text" name="searchkey" id="searchkey"/>
	   <input type="button" value="搜索" onclick="b_query()" /></div> 
    	<div class="choosed">维修项目:
    	<a {if !$catid||$catid==all} class='select'{/if}  href="{$data_url_cat}&catid=all">全部 </a>
    	{pc:yp action="get_weixiuxiangmu" }
          {loop $data $i}
    	  
    	<a {if $catid==$i['catid']} class='select'{/if} href="{$data_url_cat}&catid={$i['catid']}">{$i['catname']} </a>
    	 {/loop}
        {/pc} 
    	 </div> 
    	<div class="choosed">地区：
    	<a {if !$quyu||$quyu==all} class='select'{/if} href="{$data_url_quxian}&quyu=all">全济南</a> 
    	{pc:yp action="get_quxianquyu"  pprid="3363"}
    	 
          {loop $data $i}
    	  
    	<a {if $quyu==$i['linkageid']} class='select'{/if} href="{$data_url_cat}&quyu={$i['linkageid']}">{$i['name']} </a>
    	   
    	  
    	 {/loop}
        {/pc} 
         
    	</div> 
    	<div class="choosed" style="height:{$qx_height}px;">
    	 {$fendiqu}
         
    	</div> 
    	
    	
    	
    </div>
    <div class="col-left picbig">
    	<div class="category-main box generic info-content">
        	<div class="title">
                <div class="orderby-select mouseover" type="select" heights="23" position="0" >
                	<div class="select"><a class="up" href="">更新时间排序</a></div>
                    <ul class="selectlist subselect_0" style="display:none;"><li><a class="null" href="">请选择排序方式</a></li><li><a class="up" href="">更新时间排序</a></li><li><a class="up" href="">诚信等级由到高到低</a></li><li><a class="down" href="">诚信等级由低到低高</a></li></ul>
                </div>
             </div>
             <table class="tblist" cellpadding="0" cellspacing="0">
            <tr >
            	
                <td class="pic"></td>
                <td class="t">店名</td>
                 <td class="tdt">在线咨询</td>
                 <td class="tdt">好评数量</td>
                  <td class="tdt">活跃度</td>
                  <td class="tdt">地图</td>
                 
            </tr>
           
           {pc:yp action="get_company_byfenlei" catid="$catid" searchkey="$searchkey"  quyu="$quyu" shangq="$shangq" num="3" cache="0" page="$page"}
           {loop $data $i}
           
           {php $com_data=get_companyinfo($i['userid']);}
           {if $com_data['status']==1}
                 
                <tr >
            	<td class="pic"><div class="img-wrap">
                        <a href="{$com_data[url]}" title="{$com_data[title]}"><img src="{$com_data[logo]}" title="{$com_data[title]}" width="112" height="92"></a>
                    </div></td>
                
                <td class="t">
                    <h2><a href="{$com_data['url']}" title="{$com_data[title]}" target="_blank">{$com_data[companyname]}</a></h2>
                    <p>
                       主营业务： {str_cut($com_data['products'],120)}<br />
                       联系方式：{$com_data['telephone']}<br />
					   公司地址：{$com_data['areaname']} {$com_data['address']}
					</p>
                 </td>
                 <td class="tdt">
                {$com_data['qq']}
                 </td>
                 <td class="tdt">
                 		好评数量
                 </td>
                 <td class="tdt">
                 		回答咨询量
                 </td>
                 <td class="tdt">
                 		地图位置
                 </td>
                </tr>
              {/if}
             {/loop}
              <div id="pages" class="text-c">{$pages}</div>
            {/pc}   
            </table>
         </div>
    </div>
    <div class="col-auto">
    	
        
    </div>
</div>
{template 'yp', 'footer'}